package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;

public class BookmarkData implements Parcelable {
	
	private static final String TAG = "BookmarkData";

	private String title;
	private String url;
	
	public BookmarkData() {
	}

	private BookmarkData(Parcel in){
		this.title = in.readString();
		this.url = in.readString();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.title);
		dest.writeString(this.url);
	}
	
	public static final Parcelable.Creator<BookmarkData> CREATOR =new Parcelable.Creator<BookmarkData>() {

		@Override
		public BookmarkData createFromParcel(Parcel source) {
			return new BookmarkData(source);
		}

		@Override
		public BookmarkData[] newArray(int size) {
			return new BookmarkData[size];
		}
	};
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
